﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Data.OleDb;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

using DM_Article.Model;
using DM_Article.Bll;

public partial class third : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        using (OleDbConnection cn = new OleDbConnection(ConfigurationManager.ConnectionStrings["ConnectionStringAccess"].ConnectionString))
        {
            cn.Open();
            DataSet ds;
            //for  点击排行
            ds = articlebll.getArticleBySmallclassidDatasetTop(cn, 7, 25);
            this.repeaterHWYX.DataSource = ds;
            this.repeaterHWYX.DataBind();

            //for  澳大利亚的大学
            ds = articlebll.getArticleBySmallclassidDatasetTop(cn, 7, 25);
            this.repeaterADLYDDX.DataSource = ds;
            this.repeaterADLYDDX.DataBind();
        }
    }
}